package com.zx.mes.hyl.feign;

import com.zx.mes.hyl.entity.SysUser;
import com.zx.mes.hyl.feign.fallback.SysUserServiceFallbackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 供其它服务调用的接口
 * @author huayunlong
 * @date 2018-7-10
 */
@FeignClient(name = "cloud-long-upms",fallback = SysUserServiceFallbackImpl.class)
public interface SysUserService {
    /**
     * 根据用户名获取用户
     * @param name 用户名
     * @return SysUser
     */
    @GetMapping("/loadUserByUsername")
    SysUser loadUserByUsername(String name);
}
